/**
 * Created by Harvey Zhao on 2016/8/19.
 */

var ResUtil = {
    resData: function (status, data) {
        if (status == 'success') {
            return {
                success: true,
                data: data
            }
        } else {
            return {
                success: false,
                reason: data
            }
        }
    },
    ERROR_PARAM: '非法参数'
}

module.exports = ResUtil;